<?php

    class SiteController extends Controller {
        public $metaDescription = null;
        public $metaKeywords = null;
        public $linkCanoncical = null;
        public $title = null;
        public $layout = 'column_main';

        public function actionError(){                
            if($error=Yii::app()->errorHandler->error)
            {
                //echo $error['message'];die;
                if(Yii::app()->request->isAjaxRequest)
                    echo $error['message'];
                else
                    $this->renderPartial('error', $error);
            }
        }

        /*Trang chủ*/
        public function actionIndex(){
            $url = new Url();         
            $array_input = array();            
            $data_project_new = Project::getLatestRows($array_input,5);   
            $this->render("index",array("data_project_new"=>$data_project_new));        
        }

        public function actionHelp(){
            $url = new Url();         
            $array_input = array();                        
            $this->render("help",array());
        }

    }

?>